package com.ruoyi.mes.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 采购入库对象 buy_inhou
 *
 * @author LongAndHao
 * @date 2023-04-04
 */
public class BuyInhou extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 采购订单ID */
    private Long buyId;

    /** 入库状态 */
    @Excel(name = "入库状态")
    private Long inspcType;

    /** 成本 */
    @Excel(name = "成本")
    private BigDecimal cost;

    /** 采购订单编号 */
    @TableField(exist = false)
    private String buyOrderCode;

    /** 采购订单名称 */
    @TableField(exist = false)
    private String orderName;

    /** 物料编号 */
    @TableField(exist = false)
    private String mtrCode;

    /** 物料名称 */
    @TableField(exist = false)
    private String mtrName;

    /** 采购数量 */
    @TableField(exist = false)
    private Long buyQuantity;

    /** 供应商 */
    @TableField(exist = false)
    private String supplier;

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    public String getBuyOrderCode() {
        return buyOrderCode;
    }

    public void setBuyOrderCode(String buyOrderCode) {
        this.buyOrderCode = buyOrderCode;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getMtrCode() {
        return mtrCode;
    }

    public void setMtrCode(String mtrCode) {
        this.mtrCode = mtrCode;
    }

    public String getMtrName() {
        return mtrName;
    }

    public void setMtrName(String mtrName) {
        this.mtrName = mtrName;
    }

    public Long getBuyQuantity() {
        return buyQuantity;
    }

    public void setBuyQuantity(Long buyQuantity) {
        this.buyQuantity = buyQuantity;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBuyId(Long buyId)
    {
        this.buyId = buyId;
    }

    public Long getBuyId()
    {
        return buyId;
    }
    public void setInspcType(Long inspcType)
    {
        this.inspcType = inspcType;
    }

    public Long getInspcType()
    {
        return inspcType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buyId", getBuyId())
            .append("inspcType", getInspcType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
